package com.yuexunit.mobilenurse.module.BloodManage.adapter;

import android.widget.AbsListView;

import com.yuexunit.mobilenurse.R;
import com.yuexunit.mobilenurse.module.BloodManage.bean.Blood;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by wangt on 2017/9/7.
 */

public class BloodSendAdapter extends KJAdapter<Blood> {

    public BloodSendAdapter(AbsListView view, Collection<Blood> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder helper, Blood item, boolean isScrolling, int position) {
        super.convert(helper, item, isScrolling, position);
        helper.setText(R.id.item_blood_name, item.getPatientName());
        helper.setText(R.id.item_blood_wardname,item.getAreaNo());
        helper.setText(R.id.item_blood_requireno,item.getRequireNo());
        helper.setText(R.id.item_blood_visitno,item.getVisitNo());
        helper.setText(R.id.item_blood_bedno,item.getBedNo());
    }
}
